package com.student;
import com.student.Teacher;
public class Teacher extends Person implements PrintInformation{
    private String object;
    public void setObject(String name){
        object = name;
    }
    public Teacher(String name1, int age1, String gender1, int classId1, String object1){
        name = name1;
    }
    @Override
    public void printf(){
        System.out.printf("老师：%s\n年龄：%d\n性别：%s\n班级：%d\n教学科目：%s\n",name, age, gender, classId, object);
    }
}